package com.kaili.basic.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.entity.GlobalAttchment;
import com.kaili.basic.mapper.GlobalAttachmentMapper;
import com.kaili.basic.service.GlobalAttachmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: dxj
 * @descrinption: Created by dxj on 18-6-29.
 * @modified:
 */
@Service
public class GlobalAttachmentServiceImpl implements GlobalAttachmentService {

    @Autowired
    private GlobalAttachmentMapper attachmentMapper;


    @Override
    public int addAttachment(GlobalAttchment attchment) {
        int flag = attachmentMapper.addAttachment(attchment);
        return flag;
    }

    @Override
    public int ediAttachment(GlobalAttchment attchment) {
        return attachmentMapper.ediAttachment(attchment);
    }

    @Override
    public List<GlobalAttchment> getAttchmentById(Long id) {
        return attachmentMapper.getAttchmentById(id);
    }

    @Override
    public List<GlobalAttchment> queryPagedList(Page<GlobalAttchment> page, GlobalAttchment attchment) {
        return null;
    }
}
